#!/usr/bin/php
<?php

function main($argc, & $argv)
{
    print_r($argv);

    echo getenv("PATH"), PHP_EOL;
    echo getenv("KYO"), PHP_EOL;

    printf("env child pid: %d, ppid = %d\n",
        posix_getpid(), posix_getppid());

    // fgets(STDIN);
    sleep(10);

    // printf("2 env child pid: %d, ppid = %d\n",
        // posix_getpid(), posix_getppid());

    return 255;
}

exit(main($argc, $argv));

